<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/front.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div class="win_float_box" style="width:702px;" >

    <div class="win_box" style="padding:0 0 10px;">

        <div id="div_edit">
        <textarea name="c_content" id="c_content" cols="80" rows="30" style="width:700px;height:480px;"><?php echo htmlspecialchars($this->acontent);?></textarea>
        
        <div align="center" style="padding-top:10px;">
        <input onclick="javascript:save();" type="button" value="确 定" class="btn_blue26 line_bg_all">
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input onclick="javascript:parent.edit_c4_s2_callback_close();return false;" type="button" value="取 消" class="btn_gray26 line_bg_all">
        </div>
        </div>

	</div>
</div>




<script>
var baseUrl = "<?php echo $this->baseUrl;?>";
</script>
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="adminjs/kindeditor-min.js"></script>
<script type="text/javascript" src="adminjs/lang/zh_CN.js"></script>
<script>
var editor;
KindEditor.ready(function(K) {
        editor = K.create('#c_content', {
		uploadJson : '<?php echo $this->url ($this->baseUrl, "article", "upload", "", "admin");?>',
		fileManagerJson : '<?php echo $this->url ($this->baseUrl, "article", "filemanage", "", "admin");?>',
		allowFileManager : true,
		urlType:"domain",
		resizeType:0
});
});


function save()
{
	editor.sync();
	var content = $("#c_content").val();
	parent.edit_c4_s2_callback_save(<?php echo $this->aid;?>, content);
}
</script>
</body>
</html>